package com.ztc.ZtcCorporation.service;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ztc.ZtcCorporation.bean.ZtcCorporation;
import com.ztc.ZtcCorporation.dao.ZtcCorporationDao;

@Service("ZtcCorporation")
public class ZtcCorporationManager{
    @Autowired
    ZtcCorporationDao ztcCorporationDao;
    public String save(ZtcCorporation ztcCorporation) {
		return ztcCorporationDao.save(ztcCorporation);
	}

	public List<ZtcCorporation> getAll() {
		return ztcCorporationDao.getAllZtcCorporations();
	}

	public String delete(String id) {
		return ztcCorporationDao.delete(id);
	}

	public List<ZtcCorporation> searchInfoEquals(ZtcCorporation ztcCorporation) {
		return ztcCorporationDao.searchInfoEquals(ztcCorporation);
	}

	public List<ZtcCorporation> searchInfoLikes(ZtcCorporation ztcCorporation) {
		return ztcCorporationDao.searchInfoLikes(ztcCorporation);
	}

	public String update(ZtcCorporation ztcCorporation) {
		return ztcCorporationDao.update(ztcCorporation);
	}
}
